455284 - Focus or toggle location entry
authorFederico Mena Quintero <federico@novell.com>
Tue, 2 Oct 2007 15:50:27 +0000 (15:50 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Tue, 2 Oct 2007 15:50:27 +0000 (15:50 +0000)
commit721eb57a228e05b2d99a9cbc8b4fdee6670593bb
tree0886df480ff4c4e33dfdfb824c4333c8629a6296
parent63ee4ae25de3747361a0661c9b66943d3611c416
455284 - Focus or toggle location entry
2007-10-02  Federico Mena Quintero  <federico@novell.com>

Fix http://bugzilla.gnome.org/show_bug.cgi?id=455284 - In the file
chooser, Ctrl-L should switch to the location entry.  If we are
already on the location entry, turn it off.  Based on a patch by
Jaap A. Haitsma <jaap@haitsma.org> and an idea by Wouter
Bolsterlee.

* gtk/gtkfilechooserdefault.c (location_button_toggled_cb): Call
location_mode_set() directly instead of using toggle_location_mode().
(toggle_location_mode): Removed.
(location_toggle_popup_handler): If the file entry is not visible,
show it.  If it is visible, turn it off only if it is focused.
Otherwise, switch to the entry.

Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=18874
ChangeLog
gtk/gtkfilechooserdefault.c